// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'TickeId',
        footer: "Foots",
        cnName: '工单台账',
        name: 'TicketLedger',
        url: "/TicketLedger/",
        sortName: "TickeId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TickeNumber":"","Line":"","Plan":"","StateTime":"","EndTime":"","Bomcode":"","QRCode":"","Produce":"","DefectiveProduct":"","FirstPassRate":"","OrderFulfillmentRate":"","Remark":"","OrdersState":"","CreateTime":""};
    const editFormOptions = [[{"title":"订单编号","required":true,"field":"TickeNumber","type":"text"}],
                              [{"dataKey":"工艺线路","data":[],"title":"工艺线路","required":true,"field":"Line","type":"select"}],
                              [{"title":"计划数量","required":true,"field":"Plan","type":"text"}],
                              [{"title":"开始时间","required":true,"field":"StateTime","type":"date"}],
                              [{"title":"结束时间","required":true,"field":"EndTime","type":"date"}],
                              [{"dataKey":"BOM编码","data":[],"title":"Bom编码","required":true,"field":"Bomcode","type":"select"}],
                              [{"title":"二维码/条形码","required":true,"field":"QRCode","type":"text"}],
                              [{"title":"已经生产","required":true,"field":"Produce","type":"text"}],
                              [{"title":"不合格品","required":true,"field":"DefectiveProduct","type":"text"}],
                              [{"title":"一次通过率","required":true,"field":"FirstPassRate","type":"text"}],
                              [{"title":"订单完成率","required":true,"field":"OrderFulfillmentRate","type":"text"}],
                              [{"title":"备注","required":true,"field":"Remark","type":"textarea"}],
                              [{"dataKey":"工单台账—状态","data":[],"title":"订单状态","required":true,"field":"OrdersState","type":"select"}],
                              [{"title":"创建时间","required":true,"field":"CreateTime","type":"date"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'TickeId',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'TickeNumber',title:'订单编号',type:'string',width:110,require:true,align:'left'},
                       {field:'Line',title:'工艺线路',type:'string',bind:{ key:'工艺线路',data:[]},width:110,require:true,align:'left'},
                       {field:'Plan',title:'计划数量',type:'int',width:110,require:true,align:'left'},
                       {field:'StateTime',title:'开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'EndTime',title:'结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'Bomcode',title:'Bom编码',type:'string',bind:{ key:'BOM编码',data:[]},width:110,require:true,align:'left'},
                       {field:'QRCode',title:'二维码/条形码',type:'string',width:120,require:true,align:'left'},
                       {field:'Produce',title:'已经生产',type:'int',width:110,require:true,align:'left'},
                       {field:'DefectiveProduct',title:'不合格品',type:'int',width:110,require:true,align:'left'},
                       {field:'FirstPassRate',title:'一次通过率',type:'decimal',width:110,require:true,align:'left'},
                       {field:'OrderFulfillmentRate',title:'订单完成率',type:'decimal',width:110,require:true,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:110,require:true,align:'left'},
                       {field:'OrdersState',title:'订单状态',type:'int',bind:{ key:'工单台账—状态',data:[]},width:110,require:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}